<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>鼠标移入移出移动</title>
		<style type="text/css">
			#s{
				width:100px;
				height:100px;
				border:2px solid orange;
			}
			#s2{
				width:100px;
				height:100px;
				border:2px solid green;
			}
		</style>
		<script>
			
			function over(){
				document.getElementById("s").innerHTML="鼠标移入";
			}
			function out(){
				document.getElementById("s").innerHTML="鼠标移出";
			}
					</script>
	</head>
	<body>
	<div onmouseover="over()"  onmouseout="out()" id="s" style=""></div>
		
	</body>
</html>
